package io.adrainty.bolee.security.models.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.adrainty.bolee.framework.commons.basic.BaseBO;
import io.adrainty.bolee.security.models.valobj.CompanyStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * <p>CompanyBO</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description CompanyBO
 * @since 2025/8/1 13:39:08
 */

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tab_company")
@Schema(description = "企业账号管理")
public class CompanyBO extends BaseBO {

    @Serial
    private static final long serialVersionUID = -8235384280296526867L;

    @Schema(description = "企业编号")
    @TableField(value = "company_no")
    private String companyNo;

    @Schema(description = "企业名称")
    @TableField(value = "company_name")
    private String companyName;

    @Schema(description = "注册编号")
    @TableField(value = "registered_no")
    private String registeredNo;

    @Schema(description = "省")
    @TableField(value = "province")
    private String province;

    @Schema(description = "区")
    @TableField(value = "area")
    private String area;

    @Schema(description = "市")
    @TableField(value = "city")
    private String city;

    @Schema(description = "详细地址")
    @TableField(value = "address")
    private String address;

    @Schema(description = "状态")
    @TableField(value = "status")
    private CompanyStatusEnum status;

    @Schema(description = "到期时间")
    @TableField(value = "expire_time")
    private LocalDateTime expireTime;

    @Schema(description = "商户门店web站点")
    @TableField(value = "web_site")
    private String webSite;

    @Schema(description = "商户app站点")
    @TableField(value = "app_site")
    private String appSite;

    @Schema(description = "邮箱")
    @TableField(value = "email")
    private String email;

    @Schema(description = "电话")
    @TableField(value = "tel")
    private String tel;

    @Schema(description = "负责人手机")
    @TableField(value = "leader_mobile")
    private String leaderMobile;

    @Schema(description = "负责人")
    @TableField(value = "leader_name")
    private String leaderName;

}
